package com.qf.controller;

import com.qf.pojo.BaseResult;
import com.qf.serevice.HospitalInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

@CrossOrigin
@RestController
@RequestMapping("/hospital")
public class HospitalInfoController {
    @Autowired
    HospitalInfoService hospitalInfoService;

    @RequestMapping(value = "/findImg",method = RequestMethod.GET)
    public BaseResult findImg(){
        BaseResult all = hospitalInfoService.findImg();
        return all;
    }
}
